home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 September / Macworld (1997-09).dmg / Serious Software / Cherwell Scientific Demos / pro Fit / pro Fit 5.0 demo (ppc).sea / pro Fit 5.0 demo (ppc) / External Modules / Plot3D sources / Plot3DPrefs.h < prev    next >
MacBinary  |  1996-07-13  |  2.1 KB  |  [TEXT/CWIE]

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Plot3DPrefs.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat Jul 13 19:12:17 1996, modified Sat Jul 13 19:12:17 1996, creator 'CWIE', type ASCII, 1474 bytes "Plot3DPrefs.h" , at 0x642 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 50 6c 6f 74 33 44 | 50 72 65 66 73 2e 68 00 |..Plot3D|Prefs.h.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 05 c2 00 | 00 01 9a ae 0d dd d1 ae |........|........|
|00000060| 0d dd d1 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 72 88 00 00 |........|....r...|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 50 4c 4f 54 33 44 |#ifndef |__PLOT3D|
|00000090| 50 52 45 46 53 5f 5f 0d | 0d 23 64 65 66 69 6e 65 |PREFS__.|.#define|
|000000a0| 20 5f 5f 50 4c 4f 54 33 | 44 50 52 45 46 53 5f 5f | __PLOT3|DPREFS__|
|000000b0| 0d 0d 0d 76 6f 69 64 20 | 53 61 76 65 50 72 65 66 |...void |SavePref|
|000000c0| 65 72 65 6e 63 65 28 76 | 6f 69 64 2a 20 64 61 74 |erence(v|oid* dat|
|000000d0| 61 2c 20 6c 6f 6e 67 20 | 73 69 7a 65 2c 20 52 65 |a, long |size, Re|
|000000e0| 73 54 79 70 65 20 74 79 | 70 65 2c 20 73 68 6f 72 |sType ty|pe, shor|
|000000f0| 74 20 72 65 73 49 44 2c | 20 63 6f 6e 73 74 20 53 |t resID,| const S|
|00000100| 74 72 32 35 35 20 6e 61 | 6d 65 29 3b 0d 09 2f 2f |tr255 na|me);..//|
|00000110| 20 73 61 76 65 73 20 64 | 61 74 61 20 74 6f 20 74 | saves d|ata to t|
|00000120| 68 65 20 22 70 72 6f 20 | 46 69 74 20 50 6c 6f 74 |he "pro |Fit Plot|
|00000130| 33 44 20 50 72 65 66 65 | 72 65 6e 63 65 73 22 20 |3D Prefe|rences" |
|00000140| 66 69 6c 65 0d 09 2f 2f | 20 73 69 7a 65 3a 20 74 |file..//| size: t|
|00000150| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 64 |he size |of the d|
|00000160| 61 74 61 0d 09 2f 2f 20 | 74 79 70 65 3a 20 69 74 |ata..// |type: it|
|00000170| 73 20 4f 53 20 74 79 70 | 65 0d 09 2f 2f 20 72 65 |s OS typ|e..// re|
|00000180| 73 49 44 3a 20 69 74 73 | 20 72 65 73 6f 75 72 63 |sID: its| resourc|
|00000190| 65 20 49 44 20 28 73 65 | 74 20 30 20 69 66 20 61 |e ID (se|t 0 if a|
|000001a0| 75 74 6f 6d 61 74 69 63 | 20 72 65 73 6f 75 72 63 |utomatic| resourc|
|000001b0| 65 20 73 65 6c 65 63 74 | 69 6f 6e 29 0d 09 2f 2f |e select|ion)..//|
|000001c0| 20 6e 61 6d 65 3a 20 69 | 74 73 20 6e 61 6d 65 20 | name: i|ts name |
|000001d0| 28 73 65 74 20 74 6f 20 | 22 5c 70 22 20 69 66 20 |(set to |"\p" if |
|000001e0| 75 6e 75 73 65 64 2c 20 | 6f 74 68 65 72 77 69 73 |unused, |otherwis|
|000001f0| 65 20 73 65 74 20 72 65 | 73 49 44 20 74 6f 20 30 |e set re|sID to 0|
|00000200| 29 2e 0d 09 2f 2f 09 09 | 20 49 66 20 61 20 70 72 |)...//..| If a pr|
|00000210| 65 66 65 72 65 6e 63 65 | 73 20 6f 66 20 73 61 6d |eference|s of sam|
|00000220| 65 20 6e 61 6d 65 20 61 | 6c 72 65 61 64 79 20 65 |e name a|lready e|
|00000230| 78 69 73 74 73 2c 20 69 | 74 20 69 73 20 72 65 70 |xists, i|t is rep|
|00000240| 6c 61 63 65 64 0d 09 2f | 2f 20 73 65 74 20 64 61 |laced../|/ set da|
|00000250| 74 61 20 74 6f 20 6e 69 | 6c 20 69 6e 20 6f 72 64 |ta to ni|l in ord|
|00000260| 65 72 20 74 6f 20 64 65 | 6c 65 74 65 20 61 6e 79 |er to de|lete any|
|00000270| 20 70 72 65 66 65 72 65 | 6e 63 65 73 20 6f 66 20 | prefere|nces of |
|00000280| 67 69 76 65 6e 20 72 65 | 73 49 44 2f 6e 61 6d 65 |given re|sID/name|
|00000290| 0d 0d 0d 48 61 6e 64 6c | 65 20 4c 6f 61 64 50 72 |...Handl|e LoadPr|
|000002a0| 65 66 65 72 65 6e 63 65 | 28 52 65 73 54 79 70 65 |eference|(ResType|
|000002b0| 20 74 79 70 65 2c 20 73 | 68 6f 72 74 20 72 65 73 | type, s|hort res|
|000002c0| 49 44 2c 20 63 6f 6e 73 | 74 20 53 74 72 32 35 35 |ID, cons|t Str255|
|000002d0| 20 6e 61 6d 65 29 3b 0d | 09 2f 2f 20 6c 6f 61 64 | name);.|.// load|
|000002e0| 73 20 64 61 74 61 20 66 | 72 6f 6d 20 74 68 65 20 |s data f|rom the |
|000002f0| 22 70 72 6f 20 46 69 74 | 20 50 6c 6f 74 33 44 20 |"pro Fit| Plot3D |
|00000300| 50 72 65 66 65 72 65 6e | 63 65 73 22 20 66 69 6c |Preferen|ces" fil|
|00000310| 65 0d 09 2f 2f 20 74 79 | 70 65 3a 20 69 74 73 20 |e..// ty|pe: its |
|00000320| 4f 53 20 74 79 70 65 0d | 09 2f 2f 20 72 65 73 49 |OS type.|.// resI|
|00000330| 44 3a 20 69 74 73 20 72 | 65 73 6f 75 72 63 65 20 |D: its r|esource |
|00000340| 49 44 20 28 73 65 74 20 | 30 20 69 66 20 77 65 20 |ID (set |0 if we |
|00000350| 73 68 6f 75 6c 64 20 6c | 6f 6f 6b 20 66 6f 72 20 |should l|ook for |
|00000360| 6e 61 6d 65 29 0d 09 2f | 2f 20 6e 61 6d 65 3a 20 |name)../|/ name: |
|00000370| 69 74 73 20 6e 61 6d 65 | 20 28 73 65 74 20 74 6f |its name| (set to|
|00000380| 20 22 5c 70 22 20 69 66 | 20 77 65 20 73 68 6f 75 | "\p" if| we shou|
|00000390| 6c 64 20 6c 6f 6f 6b 20 | 66 6f 72 20 72 65 73 49 |ld look |for resI|
|000003a0| 44 29 2e 0d 09 2f 2f 20 | 72 65 74 75 72 6e 73 20 |D)...// |returns |
|000003b0| 6e 69 6c 20 69 66 20 72 | 65 73 6f 75 72 63 65 20 |nil if r|esource |
|000003c0| 6e 6f 74 20 66 6f 75 6e | 64 2e 20 4f 74 68 65 72 |not foun|d. Other|
|000003d0| 77 69 73 65 2c 20 72 65 | 73 6f 75 72 63 65 20 69 |wise, re|source i|
|000003e0| 73 20 64 65 74 61 63 68 | 65 64 20 61 6e 64 0d 09 |s detach|ed and..|
|000003f0| 2f 2f 20 69 74 73 20 68 | 61 6e 64 6c 65 20 69 73 |// its h|andle is|
|00000400| 20 72 65 74 75 72 6e 65 | 64 2e 20 49 74 20 69 73 | returne|d. It is|
|00000410| 20 75 70 20 74 6f 20 74 | 68 65 20 63 61 6c 6c 65 | up to t|he calle|
|00000420| 72 20 74 6f 20 64 69 73 | 70 6f 73 65 20 74 68 65 |r to dis|pose the|
|00000430| 20 68 61 6e 64 6c 65 0d | 0d 0d 42 6f 6f 6c 65 61 | handle.|..Boolea|
|00000440| 6e 20 55 70 64 61 74 65 | 4d 65 6e 75 46 72 6f 6d |n Update|MenuFrom|
|00000450| 50 72 65 66 73 4e 61 6d | 65 73 28 4d 65 6e 75 48 |PrefsNam|es(MenuH|
|00000460| 61 6e 64 6c 65 20 6d 65 | 6e 75 2c 20 4f 53 54 79 |andle me|nu, OSTy|
|00000470| 70 65 20 74 79 70 65 29 | 3b 0d 09 2f 2f 20 61 64 |pe type)|;..// ad|
|00000480| 64 73 20 61 20 6c 69 73 | 74 20 6f 66 20 61 6c 6c |ds a lis|t of all|
|00000490| 20 72 65 73 6f 75 72 63 | 65 73 20 68 61 76 69 6e | resourc|es havin|
|000004a0| 67 20 61 20 67 69 76 65 | 6e 20 6e 61 6d 65 20 74 |g a give|n name t|
|000004b0| 6f 20 74 68 65 20 6d 65 | 6e 75 0d 09 2f 2f 20 52 |o the me|nu..// R|
|000004c0| 65 6d 6f 76 65 73 20 61 | 6c 6c 20 65 78 69 73 74 |emoves a|ll exist|
|000004d0| 69 6e 67 20 69 74 65 6d | 73 20 66 72 6f 6d 20 74 |ing item|s from t|
|000004e0| 68 65 20 6d 65 6e 75 0d | 09 2f 2f 20 52 65 74 75 |he menu.|.// Retu|
|000004f0| 72 6e 73 20 74 72 75 65 | 20 69 66 20 74 68 65 20 |rns true| if the |
|00000500| 72 65 73 75 6c 74 69 6e | 67 20 6d 65 6e 75 20 68 |resultin|g menu h|
|00000510| 61 73 20 65 6e 74 72 69 | 65 73 0d 0d 42 6f 6f 6c |as entri|es..Bool|
|00000520| 65 61 6e 20 50 72 65 66 | 65 72 65 6e 63 65 45 78 |ean Pref|erenceEx|
|00000530| 69 73 74 73 28 4f 53 54 | 79 70 65 20 74 79 70 65 |ists(OST|ype type|
|00000540| 2c 20 73 68 6f 72 74 20 | 72 65 73 49 44 2c 20 63 |, short |resID, c|
|00000550| 6f 6e 73 74 20 53 74 72 | 32 35 35 20 6e 61 6d 65 |onst Str|255 name|
|00000560| 29 3b 0d 09 2f 2f 20 72 | 65 74 75 72 6e 73 20 74 |);..// r|eturns t|
|00000570| 72 75 65 20 69 66 20 61 | 20 70 72 65 66 65 72 65 |rue if a| prefere|
|00000580| 6e 63 65 20 77 69 74 68 | 20 74 68 65 20 67 69 76 |nce with| the giv|
|00000590| 65 6e 20 72 65 73 49 44 | 20 6f 72 20 6e 61 6d 65 |en resID| or name|
|000005a0| 20 65 78 69 73 74 73 0d | 09 2f 2f 20 74 79 70 65 | exists.|.// type|
|000005b0| 3a 20 69 74 73 20 72 65 | 73 20 74 79 70 65 0d 09 |: its re|s type..|
|000005c0| 2f 2f 20 72 65 73 49 44 | 3a 20 69 74 73 20 72 65 |// resID|: its re|
|000005d0| 73 6f 75 72 63 65 20 49 | 44 20 28 73 65 74 20 30 |source I|D (set 0|
|000005e0| 20 69 66 20 77 65 20 73 | 68 6f 75 6c 64 20 6c 6f | if we s|hould lo|
|000005f0| 6f 6b 20 66 6f 72 20 6e | 61 6d 65 29 0d 09 2f 2f |ok for n|ame)..//|
|00000600| 20 6e 61 6d 65 3a 20 69 | 74 73 20 6e 61 6d 65 20 | name: i|ts name |
|00000610| 28 73 65 74 20 74 6f 20 | 22 5c 70 22 20 69 66 20 |(set to |"\p" if |
|00000620| 77 65 20 73 68 6f 75 6c | 64 20 6c 6f 6f 6b 20 66 |we shoul|d look f|
|00000630| 6f 72 20 72 65 73 49 44 | 29 2e 0d 0d 23 65 6e 64 |or resID|)...#end|
|00000640| 69 66 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |if......|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000690| 2a a2 48 a9 a8 eb f7 00 | 00 ec b0 f8 00 00 00 00 |*.H.....|........|
|000006a0| 2a cc a3 c0 72 ec b0 7a | 48 48 48 48 48 48 48 78 |*...r..z|HHHHHHHx|
|000006b0| 0d 50 6c 6f 74 33 44 50 | 72 65 66 73 2e 68 02 00 |.Plot3DP|refs.h..|
|000006c0| 00 00 54 45 58 54 43 57 | 49 45 01 00 b2 08 b2 00 |..TEXTCW|IE......|
|000006d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 b2 08 b2 00 |..TEXTCW|IE......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 ae 0d 79 d1 00 00 | 05 c2 00 00 01 9a 00 00 |....y...|........|
|00000700| a8 2a 2a 48 72 ec b0 48 | 6c 72 6c 90 72 90 72 48 |.**Hr..H|lrl.r.rH|
|00000710| 96 9c a2 c0 c0 c0 eb f7 | 00 ec b0 f8 00 00 00 00 |........|........|
|00000720| cc a9 9c 48 48 ec b0 48 | 72 6c 90 72 72 72 96 48 |...HH..H|rl.rrr.H|
|00000730| 2a 2a 2a c0 a8 cc ec f7 | 00 ec b0 f8 00 00 00 00 |***.....|........|
|00000740| eb a2 9c 48 72 ec b0 48 | 48 48 48 48 48 48 48 48 |...Hr..H|HHHHHHHH|
|00000750| 78 9c a2 c0 cc cd d2 f7 | 00 ec b0 f8 00 00 00 00 |x.......|........|
|00000760| cc a2 a9 2a 9c ec b0 48 | 72 6c 72 96 72 96 78 48 |...*...H|rlr.r.xH|
|00000770| 9c a2 9c c0 c6 ae eb f7 | 00 ec b0 f8 00 00 00 00 |........|........|
|00000780| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 03 | 00 04 00 90 00 13 03 5c |........|.......\|
|000007b0| 02 72 00 90 00 13 03 5c | 02 72 ae 0d a6 9a 00 00 |.r.....\|.r......|
|000007c0| 00 31 00 00 00 31 00 00 | 00 00 01 00 00 00 00 04 |.1...1..|........|
|000007d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000007e0| 00 00 00 46 02 98 b8 1c | 20 52 00 00 00 1c 00 46 |...F....| R.....F|
|000007f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000800| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000810| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+